<?php
/**
 * Created by PhpStorm.
 * User: ownfi
 * Date: 2017-04-12
 * Time: 15:39
 */

namespace App\Services;

/**
 * 师傅相关
 * Interface IMasterService
 * @package App\Services
 */
interface IMasterService
{

    /**
     * 添加一个师傅
     * @param $phoneNum
     * @param $realName
     * @param $idcardNum
     * @param $baseAreaId
     * @param $serviceAreaIds
     * @param $serviceCategory
     * @param $serviceTypes
     * @param $idcardFront
     * @param $idcardBack
     * @param $idcardHold
     * @return mixed
     */
    public function add($weixinUserId,$phoneNum,$realName,$idcardNum,$baseAreaId,array $serviceAreaIds,$serviceCategory,array $serviceTypes,$idcardFront,$idcardBack,$idcardHold);

    /**
     * 师傅列表
     * @param array $wheres
     * @return mixed
     */
    public function all(array $wheres = []);

    /**
     * 通过注册申请
     * @param Request $request
     * @return string
     */
    public function registerPass($master_id);

    /**
     * 头像通过审核
     * @param Request $request
     * @return string
     */
    public function headimgPass($master_id);

    /**
     * 停单
     * @param Request $request
     * @return string
     */
    public function disable($master_id,$disable_type,$disable_time = null);

    /**
     * 解除停单
     * @param Request $request
     * @return string
     */
    public function enable($master_id);

    /**
     * 由商家端服务类型转换为师傅端服务类型
     * @param $merchant_service_type
     * @return array
     */
    public function transformMerchantServiceType($merchant_service_type);

    /**
     * 删除师傅
     * @param Request $request
     * @return string
     */
    public function delete($master_id);
}